﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Snake
{
    /// <summary>
    /// 游戏组件接口
    /// </summary>
    interface IGameComponent
    {
        /// <summary>
        /// 位置
        /// </summary>
        Point Position { get; set; }
        /// <summary>
        /// 尺寸
        /// </summary>
        Size Size { get; set; }
        /// <summary>
        /// 颜色
        /// </summary>
        Brush Color { get; set; }//贴图仅需将Brush改成Bitmap
        /// <summary>
        /// 显示方法
        /// </summary>
        /// <param name="g"></param>
        void Show(Graphics g);
    }
}
